WARNING: This program does not work the way we want it to! It has a logic error and we need to fix it!

RULE: When accessing elements in a 2D list, the first index we use is the row and the second is the column.

  • Click Run and see how our knight sprite doesn't go to the square with the treasure.
  • Change the numbers inside this line of code square_list[0][3] to get the sprite to the right square!
  • Click Run to verify that your sprite goes to the right place!. When finished, click Submit and Next.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)